home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / ex / AmphibVhcl.c < prev    next >
C/C++ Source or Header  |  1990-05-15  |  1KB  |  63 lines

  1. // AmphibVhcl.c -- Amphibious Vehicle
  2.  
  3. #include "AmphibVhcl.h"
  4. #include "nihclIO.h"
  5.  
  6. #define THIS    AmphibVhcl
  7. #define BASE_CLASSES LandVhcl::desc(),WaterVhcl::desc()
  8. #define MEMBER_CLASSES
  9. #define VIRTUAL_BASE_CLASSES
  10.  
  11. DEFINE_CLASS_MI(AmphibVhcl,1,"$Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/ex/RCS/AmphibVhcl.c,v 3.0 90/05/15 22:43:16 kgorlen Rel $",NULL,NULL);
  12.  
  13. void* AmphibVhcl::_castdown(const Class& target) const
  14. {
  15.     if (&target == desc()) return (void*)this;
  16.     void* p = LandVhcl::_castdown(target);
  17.     void* q = p;
  18.     if (p = WaterVhcl::_castdown(target)) ambigCheck(p,q,target);
  19.     return q;
  20. }
  21.  
  22. void AmphibVhcl::_printOn(ostream& strm) const
  23. {
  24.     LandVhcl::_printOn(strm);
  25.     WaterVhcl::_printOn(strm);
  26. }
  27.  
  28. void AmphibVhcl::deepenShallowCopy()
  29. {
  30.     LandVhcl::deepenShallowCopy();
  31.     WaterVhcl::deepenShallowCopy();
  32. }
  33.  
  34. AmphibVhcl::AmphibVhcl(OIOin& strm) :
  35.     Object(strm),
  36.     Vehicle(strm),
  37.     LandVhcl(strm),
  38.     WaterVhcl(strm)
  39. {
  40. }
  41.  
  42. void AmphibVhcl::storer(OIOout& strm) const
  43. {
  44.     Vehicle::storeVBaseOn(strm);
  45.     LandVhcl::storer(strm);
  46.     WaterVhcl::storer(strm);
  47. }
  48.  
  49. AmphibVhcl::AmphibVhcl(OIOifd& fd) :
  50.     Object(fd),
  51.     Vehicle(fd),
  52.     LandVhcl(fd),
  53.     WaterVhcl(fd)
  54. {
  55. }
  56.  
  57. void AmphibVhcl::storer(OIOofd& fd) const
  58. {
  59.     Vehicle::storeVBaseOn(fd);
  60.     LandVhcl::storer(fd);
  61.     WaterVhcl::storer(fd);
  62. }
  63.